<template>
	<div>
		<div class="page-header col-xs-offset-2 col-xs-8">
			<h2>Vue路由测试</h2>
		</div>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 曾经在传统html中，我们靠a标签实现不同页面的跳转 -->
			<!-- <a class="list-group-item" href="./about.html">About</a> -->
			<!-- <a class="list-group-item active" href="./home.html">Home</a> -->

			<!-- 如今在Vue中，我们靠router-link标签实现路径的改变，从而被路由器监测到，进行规则的匹配，展示对应的组件 -->
			<router-link class="list-group-item" active-class="active" to="/about">About</router-link>
			<router-link class="list-group-item" active-class="active" to="/home">Home</router-link>
		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel-body">
			<router-view></router-view>
		</div>
	</div>
</template>

<script>

	export default {
		name: 'App',
	}
</script>